<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">

<input v-model="type">
	
<div v-if="type.length<5">
     长度小于5
	</div>
	<div v-else-if="type.length<10">
	    长度小于5小于10
	</div>
	<div v-else>
	  长度大于10
	</div>
	
	</div>	
<script>
new Vue({
  el: '#app',
  data: {
    type: ''
  }
})
</script>
</body>
</html>